package test.controllers;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.google.code.lightsomy.annotations.Action;
import com.google.code.lightsomy.annotations.BeforeAction;
import com.google.code.lightsomy.annotations.Controller;


@Controller
public class AlbumController {

	@BeforeAction
	public void doSomeStuff(HttpServletRequest req, HttpServletResponse res) {
		
	}
	
	@Action
	public void listAllSongs(HttpServletRequest req, HttpServletResponse res) throws IOException {
		res.getWriter().append(req.getParameter("album_id")).flush();
	}
	
	@Action
	public void defaults(HttpServletRequest req, HttpServletResponse res) throws IOException {
		res.getWriter().append(req.getParameter("id")).flush();
	}
	
}
